home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1989 …il & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / Interfaces / CIncludes / Start.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  1.6 KB  |  91 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Tuesday, October 4, 1988 at 9:36 PM
  4.     Start.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     Copyright Apple Computer, Inc.  1987-1988
  9.     All rights reserved
  10.  
  11. ************************************************************/
  12.  
  13.  
  14. #ifndef __START__
  15. #define __START__
  16.  
  17. #ifndef __TYPES__
  18. #include <Types.h>
  19. #endif
  20.  
  21. struct SlotDev {
  22.     char sdExtDevID;
  23.     char sdPartition;
  24.     char sdSlotNum;
  25.     char sdSRsrcID;
  26. };
  27.  
  28. #ifndef __cplusplus
  29. typedef struct SlotDev SlotDev;
  30. #endif
  31.  
  32. struct SCSIDev {
  33.     char sdReserved1;
  34.     char sdReserved2;
  35.     short sdRefNum;
  36. };
  37.  
  38. #ifndef __cplusplus
  39. typedef struct SCSIDev SCSIDev;
  40. #endif
  41.  
  42. union DefStartRec {
  43.     SlotDev slotDev;
  44.     SCSIDev scsiDev;
  45. };
  46.  
  47. #ifndef __cplusplus
  48. typedef union DefStartRec DefStartRec;
  49. #endif
  50.  
  51. typedef DefStartRec *DefStartPtr;
  52.  
  53. struct DefVideoRec {
  54.     char sdSlot;
  55.     char sdsResource;
  56. };
  57.  
  58. #ifndef __cplusplus
  59. typedef struct DefVideoRec DefVideoRec;
  60. #endif
  61.  
  62. typedef DefVideoRec *DefVideoPtr;
  63.  
  64. struct DefOSRec {
  65.     char sdReserved;
  66.     char sdOSType;
  67. };
  68.  
  69. #ifndef __cplusplus
  70. typedef struct DefOSRec DefOSRec;
  71. #endif
  72.  
  73. typedef DefOSRec *DefOSPtr;
  74.  
  75. #ifdef __safe_link
  76. extern "C" {
  77. #endif
  78. pascal void GetDefaultStartup(DefStartPtr paramBlock); 
  79. pascal void SetDefaultStartup(DefStartPtr paramBlock); 
  80. pascal void GetVideoDefault(DefVideoPtr paramBlock); 
  81. pascal void SetVideoDefault(DefVideoPtr paramBlock); 
  82. pascal void GetOSDefault(DefOSPtr paramBlock); 
  83. pascal void SetOSDefault(DefOSPtr paramBlock); 
  84. pascal void SetTimeout(short count); 
  85. pascal void GetTimeout(short *count); 
  86. #ifdef __safe_link
  87. }
  88. #endif
  89.  
  90. #endif
  91.